home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-08-15 | 1.6 KB | 52 lines | [TEXT/MPS ] |
- #############################################################
- ### File: NewTempFile.install
- ### Supporting facilities needed to use
- ### MPW Shell Script "NewTempFile".
-
- ### To install the NewTempFile script in your MPW system,
- ### 1. Place the script file "NewTempFile" into
- ### any directory in the {Commands} search path.
- ### 2. Place the shell script fragments below into
- ### the standard MPW script files as indicated.
-
- ##############################################################
- ### Place the following lines into the
- ### "Startup" or one of the "UserStartup" files.
-
- # {TMP} - Directory that contains temporary files.
- Set TMP "{MPW}tmp:"
- Export TMP
-
-
- ##############################################################
- ### Place the following lines into the
- ### "Quit" script file.
-
- ### Empty the scratch directory
- Set OldExit {Exit}
- Set Exit 0
- # Don't want error messages when no windows open.
- Close -n `Files -f "{TMP}" `≥≥Dev:Null
- Set Exit {OldExit}
- Delete -y -i "{TMP}"
- NewFolder "{TMP}"
-
- ##############################################################
- ### Place the following lines into an
- ### appropriate file for the "Help" tool.
-
- -
- NewTempFile [-t] [-e | -q] [basename]
- Create a temporary scratch file. Shell variable {TMP},
- defined in Startup script, is the directory for new file.
- -t Opens file as target window (default active window).
- -e Echo the new file name without quoting.
- -q Echo the new file name, quoting names with spaces and
- special characters.
- Can't use -q and -e together
- -
-
- ### End File NewTempFile.install
- #################################################
-
-